package book;

//书架
public class BookList {
    private int count;
    private Book[] books;

    private int curSize;

    {
        //放入三本书
        count = 10;
        books = new Book[10];
        books[0] = new Book("三国演义","罗贯中",64.66);
        books[1] = new Book("西游记","吴承恩",43.16);
        books[2] = new Book("红楼梦","曹雪芹",80.16);
        curSize = 3;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Book getBooks(int i) {
        return books[i];
    }

    public void setBooks(int i, Book book) {
        books[i] = book;
    }

    public int getCurSize() {
        return curSize;
    }

    public void setCurSize(int curSize) {
        this.curSize = curSize;
    }
}
